<?php
/**
 * Created by PhpStorm.
 * User: mayn
 * Date: 2018/9/19
 * Time: 15:24
 */

namespace console\models;


use yii\base\Model;
use Cm;
class BaseModel extends Model
{
    public $wxAccount = [];

    /**
     * 查询所有的数据
     * BaseModel constructor.
     * @param array $config
     */
    public function __construct(array $config = [])
    {
        parent::__construct($config);
        $wxAccount = Cm::$db->all("SELECT id, accountappid FROM `scrm_weixin_account` WHERE  status=1 and accountverifytype <> -1");
        if ($wxAccount) {
            $this->wxAccount = $wxAccount;
        }

    }
}